package com.x.crm.util;

import java.util.Base64;
import java.util.Base64.Decoder;

public class Base64Image {

	public static byte[] decode(String base64Str) {
		 Decoder decoder = Base64.getDecoder();
         byte[] bytes = decoder.decode(base64Str);
         for (int i = 0; i < bytes.length; ++i) {
             if (bytes[i] < 0) {
                 bytes[i] += 256;
             }
         }
		return bytes;
	}
	
}
